package com.bruceliu.service.impl;

import com.bruceliu.bean.Item;
import com.bruceliu.mapper.ItemMapper;
import com.bruceliu.service.ItemService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @BelongsProject: RestaurantSystem
 * @BelongsPackage: com.bruceliu.service.impl
 * @Author: bruceliu
 * @QQ:1241488705
 * @CreateTime: 2020-03-02 00:02
 * @Description: TODO
 */
@Service
public class ItemServiceImpl implements ItemService {

    @Resource
    ItemMapper itemMapper;

    @Override
    public int addItem(Item item) {
        return itemMapper.addItem(item);
    }

    @Override
    public List<Item> findItems(int oid) {
        return itemMapper.findItems(oid);
    }
}
